gltexture: Determine format in current thread
authorBenjamin Otte <otte@redhat.com>
Tue, 12 Oct 2021 22:36:38 +0000 (00:36 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 13 Oct 2021 12:33:44 +0000 (14:33 +0200)
commit52e88ed4c882f4979dbf812607ddd0e2b0603363
treee477ab292c378ae4f546e1bdd250abeb63a0fbea
parent5199bebdb50cc261a6dba1accf567d26e29d9d1b
gltexture: Determine format in current thread

Close widget-factory and observe:

Thread 1:
 * acquire main loop
 * handle close button
 * close window
 * dispose video and media stream
 * stop GstPlayer
WAIT on pipeline stopping

Thread 2:
 * prepare next image in pipeline
 * hand image to GtkGstSink
 * create GdkTexture from image
 * gdk_gl_texture_new() determines format
WAIT on acquiring main loop

Sounds like a deadlock?

Indeed, so don't do that.
gdk/gdkgltexture.c